#include <stdio.h>
#include <pthread.h>
#include <sys/types.h>
#include <unistd.h>

int main()
{

    pthread_t tid = pthread_self();//线程号
    printf("tid = %ld\n", tid);
    pid_t pid = getpid();//进程号
    printf("pid = %d\n", pid);

    

    return 0;
}